#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from distutils.core import setup

import backport


# Get version-appropriate package info via backport.
config = backport.get_config()
if sys.version_info[0] == 3:
    config_section = 'src_package_dir'
else:
    config_section = 'dst_package_dir'
PROJECT_PACKAGES = config.options(config_section)
PROJECT_PACKAGE_DIR = dict(config.items(config_section))


# Run standard setup.
setup(name='mypackage',
      version='0.1',
      author='',
      author_email='',
      url='',
      classifiers=[# ...additional classifiers here...
                   'Programming Language :: Python',
                   'Programming Language :: Python :: 2',
                   'Programming Language :: Python :: 2.7',
                   'Programming Language :: Python :: 3',
                   'Programming Language :: Python :: 3.3'],
      packages=PROJECT_PACKAGES,
      package_dir=PROJECT_PACKAGE_DIR
     )
